package Demo;

public class Student {
	private String name;
	private String sex;
	private int age;
	
	//构造器 无参 
	public Student(){
		System.out.println("构造器");
	}
	
	//构造器 有参
	public Student(String name,String sex, int age){
		this.name = name;
		this.sex = sex;
		this.age = age;
	}
	
	public int getAge() {
		return age;
	}
	public String getName() {
		return name;
	}
	public String getSex() {
		return sex;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public void show(){
		System.out.println(name + " " + sex + " " + age);
	}
	
}
